<?xml version = '1.0' encoding = 'UTF-8'?>
<HBRRepo><variables/><rulesets/><rules><rule id="1" name="AggregateQuotas" product="Planning"><property name="application">SalesPln</property><property name="plantype">OEP_QTP</property><script type="groovy">StringBuilder strEssCalc = StringBuilder.newInstance()
strEssCalc &lt;&lt;"""

SET FRMLBOTTOMUP ON;
FIX ( "USD", "FY21", "OEP_Working", "OEP_Plan", "Financial Target",  @Relative("YearTotal",0)) 
    @IDescendants("OEP_All Territory");
    @IDescendants("OEP_Total Accounts");
    @IDescendants("OEP_Total Sales Channel");
    @IDescendants("OEP_Total Product");
    
    
ENDFIX 

SET FRMLBOTTOMUP OFF;


"""
println "Fix : "
println strEssCalc

return strEssCalc




</script></rule></rules><components/><deployobjects><deployobject product="2" application="salespln" plantype="oep_qtp" obj_id="1" obj_type="1" name="AGGREGATEQUOTAS"/></deployobjects></HBRRepo>